package com.hospital.common.dto.payment.module;

import com.hospital.common.validator.payment.module.ValidateGroup;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class OrderCreateDto {
    /**
     * 患者ID
     */
    @NotNull(message = "患者ID不能为空",groups = {
            ValidateGroup.CreateOnlineDiagnosisOrder.none.class,
            ValidateGroup.CreateOnlineDiagnosisOrder.online.class
    })
    private Long patientId;
    /**
     * 订单类型
     */
    @NotNull(message = "订单类型不能为空",groups = {
            ValidateGroup.CreateOnlineDiagnosisOrder.none.class,
            ValidateGroup.CreateOnlineDiagnosisOrder.online.class
    })
    private Integer orderType;
    /**
     * 业务数据
     */
    @NotNull(message = "业务数据不能为空",groups = ValidateGroup.CreateOnlineDiagnosisOrder.none.class)
    private Object businessData;
    /**
     * 线上诊疗费用
     */
    @NotNull(message = "线上diagCosts不能为空",groups = ValidateGroup.CreateOnlineDiagnosisOrder.online.class)
    private Double onlineCosts;
    /**
     * 线上诊疗sessionId
     */
    @NotBlank(message = "sessionId不能为空",groups = ValidateGroup.CreateOnlineDiagnosisOrder.online.class)
    private String sessionId;
}
